﻿@*@model List<AutofacProject.Models.ViewModels.StudentVM>*@@model List<AutofacProject.Entity.Student>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        @*<table>
                <thead>
                    <tr>
                        <th>id</th>
                        <th>name</th>
                        <th>class_id</th>
                        <th>class_name</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var student in Model)
                    {
                        <tr>
                            <td>@student.id</td>
                            <td>@student.name</td>
                            <td>@student.class_id</td>
                            <td>@student.class_name</td>
                        </tr>
                    }
            </table>*@
        <table>
            <thead>
                <tr>
                    <th>id</th>
                    <th>name</th>
                    <th>class_id</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var student in Model)
                {
                    <tr>
                        <td>@student.id</td>
                        <td>@student.name</td>
                        <td>@student.class_id</td>
                    </tr>
                }
        </table>
    </div>
</body>
</html>
